package myJs.myPkg

import jsext._

import scala.scalajs.js
import scala.language.implicitConversions
import scala.scalajs.js.JSConverters._
import jquery.JQuery


/**
 * Created by yz on 2019/3/14
 */
@js.native
trait BootstrapWizardJQuery extends js.Object {

  def bootstrapWizard(options: BootstrapWizardOptions): JQuery = scalajs.js.native

}

object BootstrapWizardOptions extends BootstrapWizardOptionsBuilder(noOpts)

class BootstrapWizardOptionsBuilder(val dict: OptMap) extends JSOptionBuilder[BootstrapWizardOptions, BootstrapWizardOptionsBuilder](new BootstrapWizardOptionsBuilder(_)) {

  def onNext(v: js.Function) = jsOpt("onNext", v)

  def onTabShow(v: js.Function) = jsOpt("onTabShow", v)

  def onTabClick(v: js.Function) = jsOpt("onTabClick", v)

  def nextSelector(v: String) = jsOpt("nextSelector", v)

}

trait BootstrapWizardOptions extends js.Object {

}

trait BootstrapWizardJQueryImplicits {
  implicit def implicitBootstrapWizardJQuery(jq: JQuery): BootstrapWizardJQuery = {
    jq.asInstanceOf[BootstrapWizardJQuery]
  }
}
